package com.villaday.idf.model;

/**
 * Created by tudou on 2018/9/7.
 */

public class Prepare {


    /**
     * type : 1
     * product : {"id":"string,产品ID","type":100,"quantity":1}
     * activity : {"id":"string,活动ID","type":1}
     * checkInDate : string,入住时间，形式：yyyy-MM-dd，展示时客户端根据需要处理成其它形式
     * checkOutDate : string,退房时间，形式：yyyy-MM-dd，展示时客户端根据需要处理成其它形式
     */

    private int type;
    private ProductEntity product;
    private ActivityEntity activity;
    private String checkInDate;
    private String checkOutDate;

    public Prepare(int type, ProductEntity product, ActivityEntity activity, String checkInDate, String checkOutDate) {
        this.type = type;
        this.product = product;
        this.activity = activity;
        this.checkInDate = checkInDate;
        this.checkOutDate = checkOutDate;
    }

    public Prepare(int type, ProductEntity product, String checkInDate, String checkOutDate) {
        this.type = type;
        this.product = product;
        this.checkInDate = checkInDate;
        this.checkOutDate = checkOutDate;
    }

    public Prepare(int type, ActivityEntity activity) {
        this.type = type;
        this.activity = activity;
    }

    public Prepare(int type, ActivityEntity activity, String checkInDate, String checkOutDate) {
        this.type = type;
        this.activity = activity;
        this.checkInDate = checkInDate;
        // this.checkOutDate = checkOutDate;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public ProductEntity getProduct() {
        return product;
    }

    public void setProduct(ProductEntity product) {
        this.product = product;
    }

    public ActivityEntity getActivity() {
        return activity;
    }

    public void setActivity(ActivityEntity activity) {
        this.activity = activity;
    }

    public String getCheckInDate() {
        return checkInDate;
    }

    public void setCheckInDate(String checkInDate) {
        this.checkInDate = checkInDate;
    }

    public String getCheckOutDate() {
        return checkOutDate;
    }

    public void setCheckOutDate(String checkOutDate) {
        this.checkOutDate = checkOutDate;
    }

    public static class ProductEntity {

        public ProductEntity(String id, int type, int quantity) {
            this.id = id;
            this.type = type;
            this.quantity = quantity;
        }



        /**
         * id : string,产品ID
         * type : 100
         * quantity : 1
         */

        private String id;
        private int type;
        private int quantity;



        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public int getQuantity() {
            return quantity;
        }

        public void setQuantity(int quantity) {
            this.quantity = quantity;
        }
    }

    public Prepare() {
    }

    public static class ActivityEntity {
        public ActivityEntity() {
        }

        public ActivityEntity(String id, int type, int quantity) {
            this.id = id;
            this.type = type;
            this.quantity = quantity;
        }

        /**
         * id : string,活动ID
         * type : 1
         */

        private String id;
        private int type;
        private int quantity;


        public int getQuantity() {
            return quantity;
        }

        public void setQuantity(int quantity) {
            this.quantity = quantity;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }
    }
}
